package com.lswms.service;

import com.lswms.common.page.PageInfo;
import com.lswms.common.page.PageRequest;
import com.lswms.common.service.CrudService;
import com.lswms.dto.YnLotteryRecordDTO;
import com.lswms.dto.vo.resp.LotteryListResp;
import com.lswms.entity.YnLotteryRecordEntity;
import com.lswms.entity.YnUserEntity;

/**
 * 抽奖记录表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-05-06
 */
public interface YnLotteryRecordService extends CrudService<YnLotteryRecordEntity, YnLotteryRecordDTO> {

	/**
	 * 查询是否参加过本期抽奖
	 * @param ynuser
	 * @return
	 */
	public YnLotteryRecordEntity queryLottery(YnUserEntity ynuser);
	/**
	 * 抽奖记录
	 * @param dto
	 * @param ynuser
	 * @return
	 */
	public PageInfo<LotteryListResp> lotteryList(PageRequest dto,YnUserEntity ynuser);
}